package trabajoISW2.presentation.shared;

import java.util.LinkedList;
import java.util.List;

public class AuthorDTO {
	
	private int authorId;
	private String name;
	private String surname;
	private List<BookDTO> books = new LinkedList<BookDTO>();
	
	
	
	public AuthorDTO(int id, String n, String s, List<BookDTO> b){
		authorId = id;
		name = n;
		surname = s;
		books = b;
	}
	
	public AuthorDTO(int id, String n, String s){
		authorId = id;
		name = n;
		surname = s;
	}
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getSurname() {
		return surname;
	}
	public void setSurname(String surname) {
		this.surname = surname;
	}
	public List<BookDTO> getBooks() {
		return books;
	}
	public void setBooks(List<BookDTO> books) {
		this.books = books;
	}

	public void setAuthorId(int authorId) {
		this.authorId = authorId;
	}

	public int getAuthorId() {
		return authorId;
	}
	

}
